﻿@model Forum.Models.CreateAnswerModel

@{
    ViewBag.Title = "CreateAnswer";
}

@using (Html.BeginForm("CreateAnswer","Answer"))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CreateAnswerModel</legend>

        <div class="editor-label">
            @Html.DisplayFor(model => model.PostTitle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Content)
            @Html.ValidationMessageFor(model => model.Content)
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.PostId)
        </div>

        <p>
            <input type="submit" value="Answer to post" />
        </p>
    </fieldset>
}



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
